package Week9;

import java.util.Arrays;
import java.util.Scanner;

public class Main2 {
	public static void main(String[] arge){
		Scanner in=new Scanner(System.in);
		int n=in.nextInt();
		int[] arr=new int[n];			
				for(int i=0;i<n;i++){
					try{
						int a = Integer.parseInt(in.next());
						arr[i]=a;	
					}catch(NumberFormatException e){
						System.out.println(e);
						i--;
					}
				}	
				System.out.println(Arrays.toString(arr));
	}
}
